﻿using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using ScoutOffice.BLL;

namespace ScoutOffice.UnitTests.BLL
{
    [TestFixture]
    public class PatrolFixture
    {
        [Test]
        public void Patrol_Ctor()
        {
            Patrol patrol = new Patrol("patrol");
            Assert.IsNotNull(patrol);
            Assert.AreEqual("patrol", patrol.Name);
            Assert.IsNotNull(patrol.Members);
            Assert.IsEmpty(patrol.Members);
        }

        [Test]
        public void AddScout()
        {
            Patrol patrol = new Patrol("patrol");

            Assert.IsEmpty(patrol.Members);

            Scout scout = new Scout("Joe", "Scout");
            patrol.AddScout(scout);

            Assert.IsNotEmpty(patrol.Members);
            Assert.AreEqual(1, patrol.Members.Count);
            Assert.Contains(scout, patrol.Members);
        }
    }
}
